/*
 *     Typora Theme - Pie    /    Author - kevinzhao2233
 *     https://github.com/kevinzhao2233/typora-theme-pie
 */

:root {
    --mid-1: #ffffff;
    --mid-7: #8c8c8c;
    --mid-9: #434343;
    --mid-10: #262626;
    --main-1: #fff2f0;
    --main-4: #f27f79;
    --main-5: #e6514e;
    --main-6: #da282a;
}
#wenyan {
    font-family: var(--sans-serif-font);
    line-height: 1.75;
    color: var(--mid-10);
    letter-spacing: 0;
    font-size: 16px;
}
#wenyan p,
#wenyan pre {
    margin: 1em 0.8em;
}
#wenyan p {
    word-spacing: 0.05rem;
    text-align: justify;
}
#wenyan a {
    word-wrap: break-word;
    color: var(--main-6);
    text-decoration: none;
    border-bottom: 1px solid var(--main-6);
    transition: border-bottom 0.2s;
    padding: 0 2px;
    font-weight: 500;
    text-decoration: none;
}
#wenyan h1,
#wenyan h2,
#wenyan h3,
#wenyan h4,
#wenyan h5,
#wenyan h6 {
    position: relative;
    margin: 1.2em 0 1em;
    padding: 0px;
    font-weight: bold;
    cursor: text;
}
#wenyan h2 a,
#wenyan h3 a {
    color: var(--mid-9);
}
#wenyan h1 {
    font-size: 1.5em;
    text-align: center;
}
#wenyan h1::after {
    display: block;
    width: 100px;
    height: 2px;
    margin: 0.2em auto 0;
    content: "";
    border-bottom: 2px dashed var(--main-6);
}
#wenyan h2 {
    padding-left: 6px;
    margin: 2em auto 1.4em;
    font-size: 1.3em;
    border-left: 6px solid var(--main-6);
}
#wenyan h3 {
    font-size: 1.2em;
}
#wenyan h3::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    margin-bottom: 0.18em;
    line-height: 1.43;
    vertical-align: middle;
    content: "";
    background-color: var(--main-5);
    border-radius: 50%;
}
#wenyan h4 {
    font-size: 1.2em;
}
#wenyan h4::before {
    display: inline-block;
    width: 6px;
    height: 2px;
    margin-right: 8px;
    margin-bottom: 0.18em;
    vertical-align: middle;
    content: "";
    background-color: var(--main-4);
}
#wenyan h5 {
    font-size: 1.2em;
}
#wenyan h6 {
    font-size: 1.2em;
    color: var(--mid-7);
}
#wenyan li > ol,
#wenyan li > ul {
    margin: 0;
}
#wenyan hr {
    box-sizing: content-box;
    width: 100%;
    height: 1px;
    padding: 0;
    margin: 46px auto 64px;
    overflow: hidden;
    background-color: var(--main-4);
    border: 0;
}
#wenyan blockquote {
    position: relative;
    padding: 24px 16px 12px;
    margin: 24px 0 36px;
    font-size: 1em;
    font-style: normal;
    line-height: 1.6;
    color: var(--mid-7);
    text-indent: 0;
    border: none;
    border-left: 2px solid var(--main-6);
}
#wenyan blockquote blockquote {
    padding-right: 0;
}
#wenyan blockquote a {
    color: var(--mid-7);
}
#wenyan blockquote::before {
    position: absolute;
    top: 0;
    left: 12px;
    font-family: Arial, serif;
    font-size: 2em;
    font-weight: 700;
    line-height: 1em;
    color: var(--main-6);
    content: "“";
}
#wenyan table {
    border-collapse: collapse;
    margin: 1.4em auto;
    max-width: 100%;
    table-layout: fixed;
    text-align: left;
    overflow: auto;
    display: table;
    word-wrap: break-word;
    word-break: break-all;
}
#wenyan table td,
#wenyan table th {
    font-size: 0.75em;
    padding: 9px 12px;
    line-height: 22px;
    vertical-align: top;
    border: 1px solid var(--main-4);
}
#wenyan table th {
    font-weight: bold;
    color: var(--main-6);
    background-color: var(--main-1);
}
#wenyan strong {
    padding: 0 1px;
}
#wenyan em {
    padding: 0 5px 0 2px;
}
#wenyan p code {
    padding: 2px 4px 1px;
    margin: 0 2px;
    font-family: var(--monospace-font);
    font-size: 0.92rem;
    color: var(--main-5);
    background-color: var(--main-1);
    border-radius: 3px;
}
#wenyan p code {
    vertical-align: 0.5px;
}
#wenyan .footnote {
    color: var(--main-5);
    background-color: var(--main-1);
}
#wenyan img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}
#wenyan pre {
    border-radius: 5px;
    line-height: 2;
    margin: 1em 0.5em;
    padding: .5em;
    box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px;
}
#wenyan pre code {
    display: block;
    overflow-x: auto;
    margin: .5em;
    padding: 0;
    font-family: var(--monospace-font);
}
#wenyan .footnote {
    color: rgb(239, 112, 96);
}
#wenyan #footnotes p {
    display: flex;
    margin: 0;
    font-size: 0.9em;
}
#wenyan .footnote-num {
    display: inline;
    width: 10%;
}
#wenyan .footnote-txt {
    display: inline;
    width: 90%;
    word-wrap: break-word;
    word-break: break-all;
}
